package com.longteng.diamond.service.impl;


import com.longteng.diamond.dao.ProjectMemberMapper;
import com.longteng.diamond.domain.ProjectShareNode;
import com.longteng.diamond.po.RequestResult;
import com.longteng.diamond.service.ProjectShareInterface;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
 * Created by Administrator
 * DATE : 2018/7/28
 * TIME : 13:02
 * PROJECT : java-lesson
 * PACKAGE : com.longteng.lesson
 *
 * @author <a href="mailto:taki@qq.com">Administrator</a>
 */
@Component
public class ProjectMemberInterface implements ProjectShareInterface {
    @Autowired
    ProjectMemberMapper projectMember;

    /**
     * 新增项目成员
     *
     * @param projectShareNode
     * @return
     */
    @Override
    public RequestResult addProjectShare(ProjectShareNode projectShareNode) {
        RequestResult requestResult = new RequestResult();
        projectMember.addProjectShareNode(projectShareNode);
        requestResult.setSuccess(true);
        return requestResult;
    }
    /**
     * 修改项目成员空方法
     *
     * @param projectShareNode
     * @return
     */
    @Override
    public RequestResult updateProjectShare(ProjectShareNode projectShareNode) {
        return null;
    }
    /**
     * 空方法
     *
     * @param id
     * @return
     */
    @Override
    public RequestResult deleteProjectShareCheck(Integer id) {
        RequestResult requestResult=new RequestResult();
        requestResult.setSuccess(true);
        return requestResult;
    }
    /**
     * 删除成员
     * @param id
     * @return
     */
    @Override
    public RequestResult deleteProjectShare(Integer id) {
        return null;
    }
}
